package com.asd.map.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 * @createtime 2021-09-06 8:51
 * @description
 */
@Data
@ApiModel(value = "information对象", description = "数据源实体")
@TableName("information")
public class Information implements Serializable {

    @TableId(type = IdType.ID_WORKER_STR) //mp自带策略，生成19位数值,字符串
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "数据创建类型 0:自定义创建，1:上传表格，2:数据链接")
    private String addtype;

    @ApiModelProperty(value = "数据类型 0:点，1:线，2:面")
    private String type;

    @ApiModelProperty(value = "数据名称")
    private String name;

    @ApiModelProperty(value = "是否添加图片 0：是，1：否")
    private String isImage;

    @ApiModelProperty(value = "链接")
    private String link;

    @ApiModelProperty(value = "数据字段集合，[字段1,字段2,字段3]")
    private String data;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date create_time;

}
